/* 
 * File:   main.cpp
 * Author: kisme
 *
 * Created on 26 December 2012, 9:27 PM
 */

#include <cstdlib>
#include "ser/conn/ConnTcpip.h"
#include "ser/acpt/AcptEpoll.h"

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {

    ConnTcpip *conn = new ConnTcpip();
    conn->config();
    conn->nonBlock();
    conn->bindPort();
    conn->listenPort();
    
    int _sockFd = conn->getSockFd();
    
    AcptEpoll *epoll = new AcptEpoll();
    epoll->config(_sockFd);
    epoll->ready();
    epoll->listen();

    return 0;
}

